﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.CodingListVMs
{
    public partial class CodingListTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._CodingList._Code")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.Code);
        [Display(Name = "_Model._CodingList._CurrentNumber")]
        public ExcelPropety CurrentNumber_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.CurrentNumber);
        [Display(Name = "_Model._CodingList._Example")]
        public ExcelPropety Example_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.Example);
        [Display(Name = "_Model._CodingList._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.CreateTime, true);
        [Display(Name = "_Model._CodingList._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.UpdateTime, true);
        [Display(Name = "_Model._CodingList._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.CreateBy);
        [Display(Name = "_Model._CodingList._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.UpdateBy);
        [Display(Name = "_Model._CodingList._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<CodingList>(x => x.IsValid);

	    protected override void InitVM()
        {
            
        }

    }

    public class CodingListImportVM : BaseImportVM<CodingListTemplateVM, CodingList>
    {
            //import

    }

}